﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using S9Engine;


public partial class Login : Parser
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            InitAll();

            Session["CurrentPage"] = "Login.aspx";
            
            _parser.SetCurrentDir("~/html");
            _parser.SetLanguageFile("~/templates/login.txt", _currentLanguage);

            LoadFile("login.html", false);

            _DR.Refresh(System.Data.Objects.RefreshMode.StoreWins, _DR.Users);
        }
        catch (Exception ex)
        {
            WriteError(ex);
        }
        finally
        {
            _parser.Parse("Main");
            _parser.Out("Main");
        }
    }
}